﻿namespace WcfPOXCommunication
{
    public class ServiceInvoker: IServiceInvoker
    {
        //TODO: Finish Implementation
        //TODO: code unit tests
        public object Invoke(InvokerSpecification specification)
        {
            var instance = IoCFactory.Resolve(specification.ServiceType);
            return specification.Method.Invoke(instance, specification.Parameters);
        }
    }
}